<%--
  Created by IntelliJ IDEA.
  User: xiliang
  Date: 2020/10/30
  Time: 10:27
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>

<script src="/static/js/jquery.min.js"></script>
<script src="/static/js/echarts.js"></script>

<script>

    $(function () {

        var myChart = echarts.init($("#main").get(0));

        $.ajax({
            type: "POST",
            url: "/pv2",
            data: "",
            success: function(msg){
                var obj = jQuery.parseJSON(msg);
                myChart.setOption(obj);
            }
        });



    });

</script>


<html>
<head>
    <title>Title</title>
</head>
<body>

<!-- 为 ECharts 准备一个具备大小（宽高）的 DOM -->
<div id="main" style="width: 600px;height:400px;"></div>

</body>
</html>
